/**
 * 基础路由
 * @type { *[] }
 */
import layout from '@/layout/index.vue'
const constantRouterMap = [
  {
    path: '/',
    redirect: '/login',
    children: [
      {
        path: 'login',
        name: 'Login',
        component: () => import('@/views/login/index.vue')
      },
      {
        path: 'lay',
        name: 'Layout',
        component:layout,
        redirect:"/lay/cloud",
        children:[
          {
            path:'cloud',
            name:'Cloud',
            component:() => import('@/views/cloud/index.vue')
          },
          {
            path:'ssh',
            name:'ssh',
            component:() => import('@/views/ssh/index.vue')
          },
          {
            path:'wallpaper',
            name:'wallpaper',
            component:() => import('@/views/wallpaper/index.vue')
          }
        ]
      },
      {
        path: 'ssh',
        name: 'Ssh',
        component: () => import('@/views/xterm/index.vue')
      }, {
        path: 'sftp',
        name: 'sftp',
        component: () => import('@/views/sftp/index.vue')
      },
    ]
  },
]

export default constantRouterMap